# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=kubesplit
pkgver=0.3.1
pkgrel=2
pkgdesc="Split multidoc yaml formatted kubernetes descriptors to a set of single resource files"
url="https://github.com/looztra/kubesplit"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-ruamel.yaml yamkix"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-runner"
source="$pkgname-$pkgver.tar.gz::https://github.com/looztra/kubesplit/archive/v$pkgver.tar.gz
	remove-hard-pytest-requirement.patch"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
06d9d12cdaf1fc46e372508ff348dbec2dc829885e92b4710147df14e59326138114d48da3b42b6c27f3b5c128a5e7d8f5ce66b48ae810371528fc2e1b371132  kubesplit-0.3.1.tar.gz
3bfd9e08cd27a249336341d0271943f4c38e1dadf0b031b456cca43af41055a17338c5a213b5eaa43e9c1a76981f9ba45651ccc2ebe85ba3b13ea9efd42471bf  remove-hard-pytest-requirement.patch
"
